<!-- 展示关于版本号 -->
<template>
	<iframe
        width="100%"
        height="100%"
        scrolling="no"
        :src="`/pdfjs/web/viewer.html?file=${encodeURIComponent(url)}`"
    ></iframe>
</template>

<script>
export default {
  mounted() {
	  process.env.NODE_ENV == "development" ? this.url = 'http://foshansafety.top:28097/gas/attachment/download/'+this.$route.params.fileid+'.pdf' : this.url = 'https://wb.fs-omc.com/fsgas/gas/attachment/download/'+this.$route.params.fileid+'.pdf'
	  // https://wb.fs-omc.com/fsgas/gas/
	// this.url = 'http://foshansafety.top:28097/gas/attachment/download/'+this.$route.params.fileid+'.pdf'
	// this.url = 'https://wb.fs-omc.com/fsgas/gas/attachment/download/'+this.$route.params.fileid+'.pdf'
	// console.log(this.url)
	// this.getPdf(this.$route.params.fileid)
  },
  data() {
    return {
		url:''
	};
  },
  methods:{

  }
};
</script>
<style lang="stylus" scoped>
  .personpages {
  background: #F5F6FA;
  height: 100%;
}

</style>
